#ifndef _ELEM_FIT_HPP
#define _ELEM_FIT_HPP

namespace unitraf
{
	//class for storing pointer and element and it`s together 
	class ElemFit
	{
	public:
		ElemFit( ) : _fitness( 0 ), _N( 0 ) {}
		
		ElemFit( double fitness, size_t N )
			: _fitness(fitness), _N( N )
		{ }

		//use for sotring
		bool operator < ( const ElemFit& elemFit ) 
		{
			return _fitness < elemFit._fitness;
		}

		double _fitness;
		size_t _N;
	};
}

#endif //#ifndef _ELEM_FIT_HPP